package com.core.entities;

import java.io.Serializable;

/**
 * 
 * This classes is the Data Transfer Object(Value Object) defination for the
 * entity state
 * 
 */

public class State implements Serializable {
	private int id;
	private String name;
	private int country_id;

	public State() {
	}

	public State(int id, String name, int country_id) {
		this.id = id;
		this.name = name;
		this.country_id = country_id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return (id);
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return (name);
	}

	public void setCountry_id(int country_id) {
		this.country_id = country_id;
	}

	public int getCountry_id() {
		return (country_id);
	}

	public String toString() {
//		StringBuffer ret = new StringBuffer();
//		ret.append("com.core.entities.State :");
//		ret.append("id='" + id + "'");
//		ret.append(", name='" + name + "'");
//		ret.append(", country_id='" + country_id + "'");
		return name;
	}
}
